package com.lagou.boot;

import com.lagou.service.UserServiceImpl;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Service;

@Service
public class ServerBoot implements ApplicationRunner {

/*    public static void main(String[] args) throws InterruptedException {
        //启动服务器
        UserServiceImpl.startServer("127.0.0.1",8999);
    }*/

    @Override
    public void run(ApplicationArguments args) throws Exception {
        //启动服务器
        UserServiceImpl.startServer("127.0.0.1",8999);
    }
}
